const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 导出token
  avatar: state => state.user.userInfo.staffPhoto, // 导出用户头像
  name: state => state.user.userInfo.username, // 导出用户姓名
  roles: state => state.user.userInfo.roles, // 导出用户按钮权限
  routes: state => state.permission.routes // 导出当前的路由
}
export default getters
